<% customer.tags.each do |tag| %>            
<%= link_to tag.name, customers_url(:tag_id => tag.id), :title => '点击浏览此标签的所有联系人资料', :class => "tag_#{tag.id}_#{customer.id}" %>
<% end %>